<?php
/** 
 * This is a bootstrap file required for testing. It's load and 
 * initialize WordPress core.
 * 
 * @author Ondrej Donek <ondrejd@gmail.com>
 * @version 0.1
 */

error_reporting(null);

/** Specify path where you have downloaded and unpacked WordPress files. */
(defined('WORDPRESS_PATH')) || 
		define('WORDPRESS_PATH', realpath('/opt/lampp/htdocs/_libs_/wordpress-3.0-RC1'));


#--{{{ Replacement of wp-blog-header.php
/** Tells WordPress to load the WordPress theme and output it. */
define('WP_USE_THEMES', true);
# }}}


#--{{{ Replacement of wp-load.php
/** Define ABSPATH as this files directory. */
define('ABSPATH', WORDPRESS_PATH . DIRECTORY_SEPARATOR);
# }}}


#--{{{ Replacement wp-config.php
/** The name of the database for WordPress */
define('DB_NAME', 'odwpplugin_tests');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/** WordPress Database Table prefix. */
$table_prefix  = 'wp_';

/** WordPress Localized Language, defaults to English. */
define ('WPLANG', '');

/** For developers: WordPress debugging mode. */
define('WP_DEBUG', false);
# }}}


#--{{{ Replacement of wp-settings.php
/** Stores the location of the WordPress directory of functions, classes, and core content. */
define( 'WPINC', 'wp-includes' );

// Include files required for initialization.
require( ABSPATH . WPINC . '/load.php' );
require( ABSPATH . WPINC . '/default-constants.php' );
require( ABSPATH . WPINC . '/version.php' );

// Set default timezone in PHP 5.
if(function_exists('date_default_timezone_set')) 
	date_default_timezone_set( 'UTC' );

// Ensure these global variables do not exist so they do not interfere with WordPress.
unset( $wp_filter, $cache_lastcommentmodified, $cache_lastpostdate );

// Load early WordPress files.
require( ABSPATH . WPINC . '/compat.php' );
require( ABSPATH . WPINC . '/functions.php' );
require( ABSPATH . WPINC . '/classes.php' );
require( ABSPATH . WPINC . '/wp-db.php' );
# }}}


// Enable error reporting again
error_reporting(E_ALL | E_STRICT | E_NOTICE | E_WARNING);

// Disable using of multiple databases
(defined('WP_USE_MULTIPLE_DB')) || define('WP_USE_MULTIPLE_DB', false);

